package org.apache.mina.example.lily.service;

import org.apache.mina.core.service.IoHandlerAdapter;
import org.apache.mina.core.session.IdleStatus;
import org.apache.mina.core.session.IoSession;

public class MyHandler extends IoHandlerAdapter {
	
	public void sessionCreated(IoSession session) throws Exception {
		// Empty handler
	}

	public void sessionOpened(IoSession session) throws Exception {
		// Empty handler
	}

	public void sessionClosed(IoSession session) throws Exception {
		// Empty handler
	}

	public void sessionIdle(IoSession session, IdleStatus status)
			throws Exception {
		// Empty handler
	}

	public void messageReceived(IoSession session, Object message)
			throws Exception {
		System.out.println(message.getClass());
		System.out.println(message.toString());
	}

	public void messageSent(IoSession session, Object message) throws Exception {
		// Empty handler
	}
}
